<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script src="d3.js"></script>
    <script>
        const data = [
            {name:'香蕉',value:100},
            {name:'苹果',value:120},
            {name:'橘子',value:165},
            {name:'山竹',value:90},
            {name:'菠萝',value:110},
       ];

        const x = d3.bin().value(d=>d.value);

    </script>
</body>
</html>